﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace jiemiansheji
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        public static bool haveadd=false;

        private void buildneworacleconnection_Click(object sender, EventArgs e)
        {
            connection frm = new connection();
            frm.ShowDialog();
        }

        private void buildneworacleconnection1_Click(object sender, EventArgs e)
        {
            connection frm = new connection();
            frm.ShowDialog();
        }

        private void ClossAll_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void ExitAll_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void ConnectionTree_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (haveadd)
            {
                TreeNode newnode = new TreeNode();
                newnode.Text=connection.newname;
                this.ConnectionTree.Nodes.Add(newnode);
                haveadd = false;
                connection.newname = "";
            }
        }

        private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void ConnectionTree_AfterSelect_1(object sender, TreeViewEventArgs e)
        {

        }
    }
}
